package com.kezesong.leasing.common.enums;

import java.util.HashMap;
import java.util.Map;

public enum ShopSearchEnum {
    LOWE_PRICE("1","低首付"),
    MUST_INTRODUCE("2","必推"),
    CURRENT_WEEK("3","本周上新");

    private String code;
    private String desc;
    private static Map<String, String> returnCodeMap;

    public String getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    public static Map<String, String> getReturnCodeMap() {
        return returnCodeMap;
    }

    ShopSearchEnum(String code, String desc){
        this.code = code;
        this.desc = desc;
    }

    static {
        returnCodeMap = new HashMap<>();
        for (OrderTradeStatusEnum returnCodeEnum : OrderTradeStatusEnum.values()){
            returnCodeMap.put(String.valueOf(returnCodeEnum.getCode()), returnCodeEnum.getDesc());
        }
    }
}
